#ifndef MODBUSFUNCTIONSTRUCT_H
#define MODBUSFUNCTIONSTRUCT_H

#include <QObject>
#include "ModbusActionStruct.h"

class ModbusFunctionStruct
{
public:
    ModbusFunctionStruct();

    QString name() const;
    void setName(const QString &name);

    quint8 functionCode() const;
    void setFunctionCode(const quint8 &functionCode);

    QList<ModbusActionStruct> actionList() const;
    void setActionList(const QList<ModbusActionStruct> &actionList);

private:
    QString m_name;
    quint8 m_functionCode;
    QList<ModbusActionStruct> m_actionList;
};

#endif // MODBUSFUNCTIONSTRUCT_H
